package string;

public class LengthDemo {
    public static void main(String[] args) {
                String str="我爱java!";
                int len =str.length();
                System.out.println(len);

                String str1="我爱中国!!!";
                int len1=str1.length();
                System.out.println(len1);
    }
}
